/**
 * User: Oleksii Savchenko
 * Date: 22.01.13
 * Time: 17:03
 */
module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        helpers : [
            'app/js/libs/helpers/sinon-1.4.2/sinon-1.4.2.js',
            'app/js/libs/helpers/jasmine-sinon.js',
            'app/js/libs/helpers/underscore-min.js',
            'app/js/libs/helpers/underscore.string.min.js'
        ],
        lint: {
            files: ['app/js/libs/**/*.js','spec/**/*.js']
        },
        watch: {
            files: ['<config:jasmine.specs>','app/js/libs/**/*js'],
            tasks: 'jasmine'
        },
        jasmine : {
            src : 'app/js/libs/**/*.js',
            specs : 'spec/**/*.js'
        },
        jshint: {
            options: {
                curly: true,
                eqeqeq: true,
                immed: true,
                latedef: true,
                newcap: true,
                noarg: true,
                sub: true,
                undef: true,
                boss: true,
                eqnull: true,
                node: true,
                es5: true
            },
            globals: {
                jasmine : false,
                describe : false,
                beforeEach : false,
                expect : false,
                it : false,
                spyOn : false
            }
        }
    });

    grunt.loadNpmTasks('grunt-jasmine-runner');


    // Default task.
    grunt.registerTask('default', 'lint jasmine');

};